/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xiongda.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.common.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 博客Entity
 * @author 缪琼
 * @version 2017-11-29
 */
public class XBlog extends DataEntity<XBlog> {
	
	private static final long serialVersionUID = 1L;
	private XUser xUser;		// 用户id
	private XCategory category;		// 分类id
	private String title;		// 标题
	private String content;		// 内容
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更新时间
	private Integer editCount;		// 修改次数
	private Integer praise;		// 点赞
	private Integer readCount;		// 浏览次数
	private String commentIds;		// 评论ids
	private Integer backgroundStyle;		// 背景样式
	private Integer isComment;		// 是否可评论(0.不可评论1.可评论)
	
	public XBlog() {
		super();
	}

	public XBlog(String id){
		super(id);
	}

	@ExcelField(title="用户id", align=2, sort=1)
	public XUser getUser() {
		return xUser;
	}

	public void setUser(XUser xUser) {
		this.xUser = xUser;
	}
	
	@ExcelField(title="分类id", dictType="", align=2, sort=2)
	public XCategory getCategory() {
		return category;
	}

	public void setCategory(XCategory category) {
		this.category = category;
	}
	
	@ExcelField(title="标题", align=2, sort=3)
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@ExcelField(title="内容", align=2, sort=4)
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="创建时间", align=2, sort=5)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="更新时间", align=2, sort=6)
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@ExcelField(title="修改次数", align=2, sort=7)
	public Integer getEditCount() {
		return editCount;
	}

	public void setEditCount(Integer editCount) {
		this.editCount = editCount;
	}
	
	@ExcelField(title="点赞", align=2, sort=9)
	public Integer getPraise() {
		return praise;
	}

	public void setPraise(Integer praise) {
		this.praise = praise;
	}
	
	@ExcelField(title="浏览次数", align=2, sort=10)
	public Integer getReadCount() {
		return readCount;
	}

	public void setReadCount(Integer readCount) {
		this.readCount = readCount;
	}
	
	@ExcelField(title="评论ids", align=2, sort=11)
	public String getCommentIds() {
		return commentIds;
	}

	public void setCommentIds(String commentIds) {
		this.commentIds = commentIds;
	}
	
	@ExcelField(title="背景样式", dictType="", align=2, sort=12)
	public Integer getBackgroundStyle() {
		return backgroundStyle;
	}

	public void setBackgroundStyle(Integer backgroundStyle) {
		this.backgroundStyle = backgroundStyle;
	}
	
	@ExcelField(title="是否可评论(0.不可评论1.可评论)", dictType="", align=2, sort=13)
	public Integer getIsComment() {
		return isComment;
	}

	public void setIsComment(Integer isComment) {
		this.isComment = isComment;
	}
	
}